﻿using Itech_Run.Application.Contracts.Shared.Dto;
using System.ComponentModel.DataAnnotations;

namespace Itech_Run.Sys.Application.Contracts.Dto
{
    public class SysUserUpdateDto: CustomUpdateDto
    {
        public int Category { get; set; }

        [Required]
        [StringLength(50)]
        public string UserName { get; set; }

        [StringLength(50)]
        public string? Name { get; set; }

        /// <summary>
        /// 1 男;   2 女
        /// </summary>

        public int? Sex { get; set; }

        public DateTime? Birthdate { get; set; }

        [StringLength(50)]
        public string? Nickname { get; set; }

        [StringLength(20)]
        public string? MobileNo { get; set; }

        [StringLength(50)]
        public string? Email { get; set; }

        [StringLength(200)]
        public string? PersonalImage { get; set; }

        [StringLength(100)]
        public string? Remark { get; set; }

        public bool IsActive { get; set; }

        public int Sort { get; set; }

        public List<string> RoleList { get; set; } = new List<string>();
    }
}
